package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.DsmsPoorProjectMapper;
import com.csun.dsms.model.domain.DsmsPoorProject;
import com.csun.dsms.model.vo.poor.PoorVo;
import com.csun.dsms.service.DsmsPoorProjectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-16 16:33
 * @description: TODO
 */
@Slf4j
@Service
@Transactional
public class DsmsPoorProjectServiceImpl extends BaseService<DsmsPoorProject> implements DsmsPoorProjectService {

    @Resource
    private DsmsPoorProjectMapper dsmsPoorProjectMapper;

    /**
     * 查询未创建的特困人员服务项目
     *
     * @param date  the today date
     *
     * @return  the dms poor project list
     */
    @Override
    public List<PoorVo> queryNotExitRecordList(String date) {

        return dsmsPoorProjectMapper.queryNotExitRecordList(date);
    }
}
